package com.cyzy.mapper;

import com.cyzy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> selectUsers(
            @Param("username") Integer username,
            @Param("realName") String realName,
            @Param("phone") String phone,
            @Param("start") int start,
            @Param("size") int size);

    int selectTotal(
            @Param("username") Integer username,
            @Param("realName") String realName,
            @Param("phone") String phone);

    User selectById(Integer id);

    int update(User user);

    int deleteById(Integer id);
}